home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 1 / QRZ Ham Radio Callsign Database - December 1993.iso / ucsd / packet / tcpip / sys5 / iscwmpst.z / iscwmpst / tcp / net.rc < prev    next >
Encoding:
Text File  |  1991-11-22  |  5.1 KB  |  248 lines

  1. # net.rc from dc1ik.ampr.org
  2. #### Slattach if you want to 'bind' the WAMPES-System to the UNIX-TCP/IP:
  3. #### ! slattach /dev/ttype 2400 &
  4. esc 
  5. hostname myhostname
  6. ax25 my myax25call 
  7. ip a 44.130.41.10
  8. # /* change it! */
  9. #
  10. # asy attaches 
  11. # (my configuration)
  12. # com2, Port /dev/tty01, ax25 Interface, interface-name *must* be /dev - Name,
  13. #  8192 byte buffer, 256 bytes MTU, 9600 baud, ip-address myipaddress
  14. #
  15. att asy /dev/tty01 0 ax25 tty01 8192 256 9600 44.130.41.10
  16. #
  17. # com3
  18. att asy /dev/tty02 0 ax25 tty02 8192 256 9600 44.130.41.10
  19. #
  20. #
  21. # IPC Interface, to enable 2 net's to speak together (only with bridge started!)
  22. # /tcp/util/bridge listenes on socket 4713 to bind some net's together link a
  23. # loopback-link via two TNC's
  24. # It also enables two net's to connect to via ethernet (change 127.0.0.1 with 
  25. # the appropriate ip address)
  26. #
  27. # att asy 0 127.0.0.1:4713 ax25 ipc0 1024 460 9600 44.130.41.10
  28. #
  29. # Attach to an pty for special programs... like pe1chl running in the background
  30. # (or old ka9q 890421.1)
  31. # NOTE: you have to start the other program first, works very well in my config
  32. # with pe1chl-soft for unix
  33. #
  34. # att asy /dev/ptypa 0 ax25 ptypa 2048 256 9600 44.130.41.10
  35. # This is special... if slattach is startet on /dev/ttype (first line of this 
  36. # file) you may route from unix<->packet! 
  37. #  
  38. # att asy /dev/ptype 0 slip ptype 2048 256 2400 44.130.41.10
  39. #
  40. ################# NOTE !
  41. # Name your interface as the /dev-file, otherwise it may cause problems.
  42. # So no aliasing like 'ax0' for /dev/tty01 is possible.
  43. #
  44. # this if you made the slattach trick:
  45. #
  46. # ro add myunixhostip ptype myunixhostip
  47. #         ^^in my case this is dc1ik-u
  48. # Note: you have to give your unix-host a *different* ip address as the wampes
  49. # (net) program. In my config dc1ik is 44.130.41.10, dc1ik-u (UNIX) is 
  50. # 44.130.41.99
  51. #
  52. # for axip-encapsulation, not needed without internet-connecten
  53. # axip is just not tested in the real internet, pse mail comments and complaints
  54. # about this to jk04@dkauni2.bitnet (Olaf Erb)
  55. #
  56. #### attach axip
  57. # ifconfig to set the interface's IP and ax25 addresses
  58. #
  59. if tty01 ip myipaddres
  60. if tty01 link myax25address 
  61. #
  62. if tty02 ip 44.130.41.10
  63. if tty02 link dc1ik-1
  64. #
  65. # ip parms
  66. #
  67. # reasm-timeout
  68. #
  69. ip rt 50000
  70. # time-to-live
  71. #
  72. ip ttl 16
  73. #
  74. # tcp parms
  75. #
  76. tcp win 1024
  77. tcp irtt 12000
  78. #
  79. # 216 is maximum-segment-size for ax25
  80. #
  81. tcp mss 216
  82. #
  83. # Netrom-Parms
  84. #
  85. att net
  86. net link myax25address db0id 32 permanent
  87. # IP-Routes via NET/ROM :-(
  88. route add db0tcp netrom 
  89. route add db0qs netrom 
  90. route add dg8fbv netrom 
  91. route add hb9zz netrom
  92. #
  93. # ax25 routes, permanent = not reroutet or changed by autorouter
  94. #
  95. ax ro add permanent tty01 db0eq
  96. ax ro add permanent tty01 default
  97. ax ro add permanent tty01 db0id db0eq
  98. # this could be changed by connecting over an other path, but default route
  99. # to this calls is set here:
  100. ax ro add tty01 db0sao db0eq db0id
  101. ax ro add tty01 db0odw db0eq
  102. #
  103. #
  104. ax ro add permanent tty02 db0da
  105. ax ro add tty02 dg8fbv db0da
  106. #
  107. # arp's
  108. #
  109. arp add db0id ax25 db0id 
  110. arp add db8us ax25 db8us 
  111. arp add dg8fbv ax25 dg8fbv
  112. #
  113. # tcp routes
  114. #
  115. route add db0id tty01 db0id
  116. route add 44/8 tty01 db0id
  117. route add dl1it tty01 dl1it
  118. route add dg8fbv tty02 dg8fbv
  119. #
  120. #
  121. # start servers
  122. #
  123. start ax25
  124. start telnet
  125. start ftp
  126. start echo
  127. start discard
  128. start netrom
  129. #
  130. # udp
  131. #
  132. start remote
  133. remote -s exit_key
  134. #
  135. #         ^^^^ with 'remote -k exit_key <host>' you may force a restart of net
  136. # rip seems to work, but it's needless because of the wampes-autorouter
  137. #
  138. # start rip
  139. #
  140. # settime-protocol, not needed (and not properly implementet on ISC :-()
  141. # start stime
  142. #
  143. # rip options
  144. #
  145. # rip add db8us 400
  146. #
  147. # netrom parms
  148. ### look in NET for parameters
  149. ### ('net parms')
  150. net p 1 10
  151. net p 2 100
  152. net p 3 64
  153. net p 6 120
  154. net p 7 7200
  155. net i "#IDENT" 
  156. #
  157. # tcp-services
  158. ### tcpgate enables tcp-connections from unix->net, not like slattach, but
  159. ### just try and, and you'll see it :-)
  160. #
  161. ## finger
  162. start tcpgate finger *:79
  163. #
  164. ## tcpgate to convers-socket  (to connect other Convers-Nodes via TCP)
  165. #
  166. start tcpgate 3600 *:3600
  167. #
  168. ## SMTP 
  169. #
  170. start tcpgate smtp *:25
  171. #
  172. #
  173. ## this for POP-daemon, if enabled
  174. ## start tcpgate 109 *:109
  175. #
  176. ## nntp-server (not included with wampes, but you may find the src on some
  177. ## ftp-servers)
  178. #
  179. # start tcpgate 119 *:119
  180. #
  181. # smtp timer tick
  182. #
  183. sm timer 1200
  184. #
  185. # ax25 parms
  186. #
  187. # maxframe:
  188. #
  189. ax max 3
  190. #
  191. # pollthresh
  192. #
  193. ax pt 16
  194. #
  195. # paclen
  196. ax pac 256
  197. #
  198. ax t1 10000  # retrans timer
  199. ax t2 2000  # ack delay-timer
  200. ax t3 120000 # idle poll timer
  201. ax t4 40000 # busy timer
  202. ax t5 1000  # packet assembly timeout
  203. ax ret 20   # retries
  204. #
  205. #
  206. # kiss parms - txd, ppers, slottime
  207. #
  208. par tty01 1 28
  209. par tty01 2 80
  210. par tty01 3 30
  211. #
  212. par tty02 1 30
  213. par tty02 2 32
  214. par tty02 3 30
  215. # logging
  216. #
  217. # trace to multi-screen 2
  218. #
  219. tr tty01 111 /dev/vt02
  220. # no trace for if tty02
  221. #
  222. # tr tty02 111 /dev/vt03
  223. #
  224. # logging
  225. log /tcp/net.log
  226. #
  227. echo refuse
  228. #
  229. #
  230. # crc for use with SMACK (Enhanced KISS with CRC, by DL5UE. It discovers frame-
  231. # errors on the serial line between TNC and PC, so it's *error-free* !)
  232. # - ask me for the binary for tnc2.
  233. # if tty01 crc on
  234. # if tty02 crc on
  235. #
  236. # now ping some hosts 
  237. ping db0id
  238. ping db7iz
  239. ping dl1it
  240. ping db8us
  241. ping db0sao
  242. #
  243. # the end.
  244. # Questions to jk04@dkauni2.bitnet
  245.